<%@ page language="java" pageEncoding="UTF-8"
	errorPage="../../defaultException.jsp"%>
<%@include file="../../tags.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>更新目的地特色分类信息</title>
<%@include file="../../head.jsp"%>
</head>
<body>
	<form id="fm" method="post" enctype="multipart/form-data">
		<table>
			<tr>
				<td><label>分类名称:</label>
				</td>
				<td><input name="featureCategoryName"
					data-options="required:true,validType:'length[0,32]'"
					class="easyui-validatebox"
					value="${categoryInfo.featureCategoryName }">
				</td>
			</tr>
			<tr>
				<td><label>分类顺序:</label>
				</td>
				<td><input name="featureCategoryOrder"
					class="easyui-numberbox" data-options="required:true,min:1,max:100"
					value="${categoryInfo.featureCategoryOrder }">
				</td>
			</tr>
			<tr>
				<td><label>归属父类名称:</label>
				</td>
				<td><input id="featureParentCategoryId"
					name="featureParentCategoryId" />
				</td>
			</tr>
			<tr>
				<td><label>默认停留时间:</label>
				</td>
				<td><input name="defaultPauseTime" class="easyui-validatebox"
					data-options="required:true" validType="numberbox" 
					 value="${categoryInfo.defaultPauseTime }"/>分
				</td>
			</tr>
			<tr>
				<td><label>是否是顶层类别:</label>
				</td>
				<td>
				<select name="rootViewable">
						<option value="1" <c:if test="${categoryInfo.rootViewable eq 1 }">selected="selected"</c:if>>是</option>
						<option value="0" <c:if test="${categoryInfo.rootViewable eq 0 }">selected="selected"</c:if>>不是</option>
				</select>
				</td>
			</tr>
			<tr>
				<td><label>类别颜色RGB:</label>
				</td>
				<td><input name="featureCategoryColor"
					value="${categoryInfo.featureCategoryColor }" />#加十六进制数。例：#129abg
				</td>
			</tr>
			<tr>
				<td><label>类别图标：</label>
				</td>
				<td><input name="mfile" type="file"/>
				</td>
			</tr>
			<tr>
				<td><label>类别描述:</label>
				</td>
				<td><textarea name="featureCategoryDesc"
						data-options="validType:'length[0,16]'"
						class="easyui-validatebox">${categoryInfo.featureCategoryDesc }</textarea>
				</td>
			</tr>
			<tr>
			<td><label>旧图标</label></td>
			<td><img src="${image_domain }${categoryInfo.featureCategoryOrigImg}" width=150px height=100px></td>
			</tr>
			
			<input type="hidden" name="featureCategoryId"
				value="${categoryInfo.featureCategoryId }" />
			<input type="hidden" name="oldOrder"
				value="${categoryInfo.featureCategoryOrder }" />
			<input type="hidden" name="featureCategoryOrigImg" value="${categoryInfo.featureCategoryOrigImg}" />
		</table>

	</form>
	<script type="text/javascript">
		//初始化目的地特色类别信息
		$('#featureParentCategoryId').combobox({
			url : '${cpath }/admin/dest/feature/category/listParentCategory',
			valueField : 'featureCategoryId',
			textField : 'featureCategoryName',
			value : '${categoryInfo.featureParentCategoryId}'
		});
	</script>
	<style type="text/css">
#fm {
	margin: 0;
	padding: 40px 40px;
}

.ftitle {
	font-size: 14px;
	font-weight: bold;
	padding: 5px 0;
	margin-bottom: 10px;
	border-bottom: 1px solid #ccc;
}

.fitem {
	margin-bottom: 5px;
}

.fitem label {
	display: inline-block;
	width: 90px;
}
</style>
</body>
</html>